#ifndef QTBLENDTOEFFECT_H
#define QTBLENDTOEFFECT_H

#include "QtSingleAnimationEffect.h"

class QtBlendToEffect: public QtSingleAnimationEffect
{
public:
	QtBlendToEffect();
	QtBlendToEffect(const QtBlendToEffect& rhs);
	virtual ~QtBlendToEffect();

	void SetTarget(QtSprite *sprite);
	QtSprite* Target() const;


	void SetEndAlpha(qreal alpha);
	QtAnimationEffect* Clone() const;

protected:
	void SetupAnimation();

private slots:
	void Update(qreal value);

private:
	qreal endAlpha;
	qreal startAlpha;
	QtSprite *target;
};

#endif //QTBLENDTOEFFECT_H
